
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>Linux && Hardware · 梦里茶</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.2">
        <meta name="author" content="陈伟航">
        
        
    
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-disqus/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-toggle-chapters/toggle.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
        <link rel="stylesheet" href="../styles/website.css">
        
    
        
    
        
    
        
    
        
    
        
    


    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="ubuntu_init.html" />
    
    
    <link rel="prev" href="../backend/concurrent.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../android/">
            
                <a href="../android/">
            
                    
                    Android
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../android/activity/">
            
                <a href="../android/activity/">
            
                    
                    activity
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1.1" data-path="../android/activity/activity-si-zhong-qi-dong-mo-shi.html">
            
                <a href="../android/activity/activity-si-zhong-qi-dong-mo-shi.html">
            
                    
                    Activity四种启动模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.1.2" data-path="../android/activity/intent_flag.html">
            
                <a href="../android/activity/intent_flag.html">
            
                    
                    Intent Flag
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.1.3" data-path="../android/activity/duo-task-de-ying-yong.html">
            
                <a href="../android/activity/duo-task-de-ying-yong.html">
            
                    
                    多task的应用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.1.4" data-path="../android/activity/task-he-hui-tui-zhan.html">
            
                <a href="../android/activity/task-he-hui-tui-zhan.html">
            
                    
                    Task和回退栈
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../android/sqlite/">
            
                <a href="../android/sqlite/">
            
                    
                    sqlite
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.2.1" data-path="../android/sqlite/cong-yuan-ma-kan-android-zhong-sqlite-shi-zen-mo-tong-guo-cursorwindow-du-db-de.html">
            
                <a href="../android/sqlite/cong-yuan-ma-kan-android-zhong-sqlite-shi-zen-mo-tong-guo-cursorwindow-du-db-de.html">
            
                    
                    【源码】CursorWindow读DB
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2.2" data-path="../android/sqlite/sqlite-zai-android-shang-de-yi-ge-bug.html">
            
                <a href="../android/sqlite/sqlite-zai-android-shang-de-yi-ge-bug.html">
            
                    
                    Sqlite在Android上的一个Bug
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../android/chromium.html">
            
                <a href="../android/chromium.html">
            
                    
                    Chromium
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="../android/listview_db.html">
            
                <a href="../android/listview_db.html">
            
                    
                    ListView读取DB数据最佳实践
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="../android/androidproject-jie-gou.html">
            
                <a href="../android/androidproject-jie-gou.html">
            
                    
                    Android Project结构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.6" data-path="../android/yi-ge-you-proguard-yu-fastjson-yin-qi-de-xie-an.html">
            
                <a href="../android/yi-ge-you-proguard-yu-fastjson-yin-qi-de-xie-an.html">
            
                    
                    一个由Proguard与FastJson引起的血案
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.7" data-path="../android/note.html">
            
                <a href="../android/note.html">
            
                    
                    琐碎的一些tips
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../cv/">
            
                <a href="../cv/">
            
                    
                    Computer Vision
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../cv/feature.html">
            
                <a href="../cv/feature.html">
            
                    
                    特征提取
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../cv/utils.html">
            
                <a href="../cv/utils.html">
            
                    
                    计算机视觉常用工具
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../ml/">
            
                <a href="../ml/">
            
                    
                    Machine Learning
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../ml/trick/">
            
                <a href="../ml/trick/">
            
                    
                    技巧
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1.1" data-path="../ml/trick/imgnet_1h.html">
            
                <a href="../ml/trick/imgnet_1h.html">
            
                    
                    FaceBook: 1 hour training ImageNet
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.1.2" data-path="../ml/trick/l2_normalize.html">
            
                <a href="../ml/trick/l2_normalize.html">
            
                    
                    L2 Norm与L2 normalize
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../ml/ncs.html">
            
                <a href="../ml/ncs.html">
            
                    
                    实践
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.2.1" data-path="../ml/pratice/torch_best_practice.html">
            
                <a href="../ml/pratice/torch_best_practice.html">
            
                    
                    Pytorch实验代码的亿些小细节
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../ml/kit/">
            
                <a href="../ml/kit/">
            
                    
                    工具
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.3.1" >
            
                <a target="_blank" href="https://github.com/ahangchen/GDLNotes">
            
                    
                    Tensorflow学习笔记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3.2" data-path="../ml/kit/mxnet.html">
            
                <a href="../ml/kit/mxnet.html">
            
                    
                    MXNet踩坑手记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3.3" data-path="../ml/kit/pytorch.html">
            
                <a href="../ml/kit/pytorch.html">
            
                    
                    PyTorch踩坑手记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3.4" data-path="../ml/kit/keras.html">
            
                <a href="../ml/kit/keras.html">
            
                    
                    Keras踩坑手记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3.5" data-path="../ml/kit/mscnn.html">
            
                <a href="../ml/kit/mscnn.html">
            
                    
                    mscnn
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3.6" data-path="../ml/kit/matlab/">
            
                <a href="../ml/kit/matlab/">
            
                    
                    Matlab
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.3.6.1" data-path="../ml/kit/matlab/ripc_auto.html">
            
                <a href="../ml/kit/matlab/ripc_auto.html">
            
                    
                    Matlab Remote IPC自动化数据处理
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="../ml/papers/">
            
                <a href="../ml/papers/">
            
                    
                    Papers
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.4.1" data-path="../ml/papers/classification/">
            
                <a href="../ml/papers/classification/">
            
                    
                    Classification
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4.2" data-path="../ml/papers/reid/">
            
                <a href="../ml/papers/reid/">
            
                    
                    Re-identification
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.4.2.1" data-path="../ml/papers/reid/tfusion.html">
            
                <a href="../ml/papers/reid/tfusion.html">
            
                    
                    CVPR2018:TFusion完全解读
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4.2.2" data-path="../ml/papers/reid/eccv2018_taudl.html">
            
                <a href="../ml/papers/reid/eccv2018_taudl.html">
            
                    
                    ECCV2018:TAUDL
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4.2.3" data-path="../ml/papers/reid/cuhk_sentimes.html">
            
                <a href="../ml/papers/reid/cuhk_sentimes.html">
            
                    
                    CVPR2018:Graph+reid
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4.2.4" data-path="../ml/papers/reid/reid.html">
            
                <a href="../ml/papers/reid/reid.html">
            
                    
                    Person Re-identification
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4.2.5" data-path="../ml/papers/reid/cvpr-reid.html">
            
                <a href="../ml/papers/reid/cvpr-reid.html">
            
                    
                    CVPR2016 Re-id
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4.2.6" data-path="../ml/papers/reid/reid-topo.html">
            
                <a href="../ml/papers/reid/reid-topo.html">
            
                    
                    Camera topology and Person Re-id
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4.2.7" data-path="../ml/papers/reid/deep_transfer_learning_person_reid.html">
            
                <a href="../ml/papers/reid/deep_transfer_learning_person_reid.html">
            
                    
                    Deep transfer learning Person Re-id
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4.2.8" data-path="../ml/papers/reid/evaluate.html">
            
                <a href="../ml/papers/reid/evaluate.html">
            
                    
                    Evaluate
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4.4.3" data-path="../ml/papers/detection/">
            
                <a href="../ml/papers/detection/">
            
                    
                    Object Detection
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.4.3.1" data-path="../ml/papers/detection/rcnn.html">
            
                <a href="../ml/papers/detection/rcnn.html">
            
                    
                    读论文系列·干货满满的RCNN
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4.3.2" data-path="../ml/papers/detection/sppnet.html">
            
                <a href="../ml/papers/detection/sppnet.html">
            
                    
                    读论文系列·SPP-net
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4.3.3" data-path="../ml/papers/detection/fast_rcnn.html">
            
                <a href="../ml/papers/detection/fast_rcnn.html">
            
                    
                    读论文系列·Fast RCNN
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4.3.4" data-path="../ml/papers/detection/faster_rcnn.html">
            
                <a href="../ml/papers/detection/faster_rcnn.html">
            
                    
                    读论文系列·Faster RCNN
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4.3.5" data-path="../ml/papers/detection/yolo.html">
            
                <a href="../ml/papers/detection/yolo.html">
            
                    
                    读论文系列·YOLO
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4.3.6" data-path="../ml/papers/detection/ssd.html">
            
                <a href="../ml/papers/detection/ssd.html">
            
                    
                    读论文系列·SSD
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4.3.7" data-path="../ml/papers/detection/yolo23.html">
            
                <a href="../ml/papers/detection/yolo23.html">
            
                    
                    读论文系列·YOLOv2 & YOLOv3
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4.3.8" data-path="../ml/papers/detection/other.html">
            
                <a href="../ml/papers/detection/other.html">
            
                    
                    读论文系列·detection其他文章推荐
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4.4.4" data-path="../ml/papers/mono_depth/">
            
                <a href="../ml/papers/mono_depth/">
            
                    
                    Depth
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4.5" data-path="../ml/papers/3d_vision/">
            
                <a href="../ml/papers/3d_vision/">
            
                    
                    3D vision
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.4.5.1" data-path="../ml/papers/3d_vision/datasets.html">
            
                <a href="../ml/papers/3d_vision/datasets.html">
            
                    
                    数据集相关
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4.5.2" data-path="../ml/papers/3d_vision/flow.html">
            
                <a href="../ml/papers/3d_vision/flow.html">
            
                    
                    光流相关
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4.4.6" data-path="../ml/papers/ssah/">
            
                <a href="../ml/papers/ssah/">
            
                    
                    Hashing
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.4.6.1" data-path="../ml/papers/ssah/ssah.html">
            
                <a href="../ml/papers/ssah/ssah.html">
            
                    
                    CVPR2018: SSAH
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4.4.7" data-path="../ml/papers/overview/">
            
                <a href="../ml/papers/overview/">
            
                    
                    大杂烩
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.4.7.1" data-path="../ml/papers/overview/cncc2017.html">
            
                <a href="../ml/papers/overview/cncc2017.html">
            
                    
                    CNCC2017 琐记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4.7.2" data-path="../ml/papers/overview/eccv2016_hydra_ccnn.html">
            
                <a href="../ml/papers/overview/eccv2016_hydra_ccnn.html">
            
                    
                    ECCV 2016 Hydra CCNN
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4.7.3" data-path="../ml/papers/overview/cncc_cv.html">
            
                <a href="../ml/papers/overview/cncc_cv.html">
            
                    
                    CNCC2017深度学习与跨媒体智能
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4.7.4" data-path="../ml/papers/overview/mla_2016.html">
            
                <a href="../ml/papers/overview/mla_2016.html">
            
                    
                    MLA2016笔记
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="../ml/zzh_ml_notes/">
            
                <a href="../ml/zzh_ml_notes/">
            
                    
                    《机器学习》（周志华）读书笔记
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.5.1" data-path="../ml/zzh_ml_notes/melon/">
            
                <a href="../ml/zzh_ml_notes/melon/">
            
                    
                    西瓜书概念整理
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.5.1.1" data-path="../ml/zzh_ml_notes/melon/ch01.html">
            
                <a href="../ml/zzh_ml_notes/melon/ch01.html">
            
                    
                    绪论
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5.1.2" data-path="../ml/zzh_ml_notes/melon/ch02.html">
            
                <a href="../ml/zzh_ml_notes/melon/ch02.html">
            
                    
                    模型评估与选择
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5.1.3" data-path="../ml/zzh_ml_notes/melon/ch03.html">
            
                <a href="../ml/zzh_ml_notes/melon/ch03.html">
            
                    
                    线性模型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5.1.4" data-path="../ml/zzh_ml_notes/melon/ch04.html">
            
                <a href="../ml/zzh_ml_notes/melon/ch04.html">
            
                    
                    决策树
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5.1.5" data-path="../ml/zzh_ml_notes/melon/ch05.html">
            
                <a href="../ml/zzh_ml_notes/melon/ch05.html">
            
                    
                    神经网络
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5.1.6" data-path="../ml/zzh_ml_notes/melon/ch06.html">
            
                <a href="../ml/zzh_ml_notes/melon/ch06.html">
            
                    
                    支持向量机
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5.1.7" data-path="../ml/zzh_ml_notes/melon/ch07.html">
            
                <a href="../ml/zzh_ml_notes/melon/ch07.html">
            
                    
                    贝叶斯分类器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5.1.8" data-path="../ml/zzh_ml_notes/melon/ch08.html">
            
                <a href="../ml/zzh_ml_notes/melon/ch08.html">
            
                    
                    集成学习
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5.1.9" data-path="../ml/zzh_ml_notes/melon/ch09.html">
            
                <a href="../ml/zzh_ml_notes/melon/ch09.html">
            
                    
                    聚类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5.1.10" data-path="../ml/zzh_ml_notes/melon/ch10.html">
            
                <a href="../ml/zzh_ml_notes/melon/ch10.html">
            
                    
                    降维与度量学习
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5.1.11" data-path="../ml/zzh_ml_notes/melon/ch11.html">
            
                <a href="../ml/zzh_ml_notes/melon/ch11.html">
            
                    
                    特征选择与稀疏学习
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5.1.12" data-path="../ml/zzh_ml_notes/melon/ch12.html">
            
                <a href="../ml/zzh_ml_notes/melon/ch12.html">
            
                    
                    计算学习理论
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5.1.13" data-path="../ml/zzh_ml_notes/melon/ch13.html">
            
                <a href="../ml/zzh_ml_notes/melon/ch13.html">
            
                    
                    半监督学习
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5.1.14" data-path="../ml/zzh_ml_notes/melon/ch14.html">
            
                <a href="../ml/zzh_ml_notes/melon/ch14.html">
            
                    
                    概率图模型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5.1.15" data-path="../ml/zzh_ml_notes/melon/ch15.html">
            
                <a href="../ml/zzh_ml_notes/melon/ch15.html">
            
                    
                    规则学习
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5.1.16" data-path="../ml/zzh_ml_notes/melon/ch16.html">
            
                <a href="../ml/zzh_ml_notes/melon/ch16.html">
            
                    
                    强化学习
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5.1.17" data-path="../ml/zzh_ml_notes/melon/ch17.html">
            
                <a href="../ml/zzh_ml_notes/melon/ch17.html">
            
                    
                    附录
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../java/">
            
                <a href="../java/">
            
                    
                    Java
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../java/java-web/">
            
                <a href="../java/java-web/">
            
                    
                    java web
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1.1" data-path="../java/java-web/servlet-zu-zhi.html">
            
                <a href="../java/java-web/servlet-zu-zhi.html">
            
                    
                    Servlet部署
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.2" data-path="../java/java-web/note.html">
            
                <a href="../java/java-web/note.html">
            
                    
                    琐碎的tips
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../java/note.html">
            
                <a href="../java/note.html">
            
                    
                    JNI
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="../java/note-1.html">
            
                <a href="../java/note-1.html">
            
                    
                    Note
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="../java/l1-new-delete.html">
            
                <a href="../java/l1-new-delete.html">
            
                    
                    Effective Java笔记
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../backend/">
            
                <a href="../backend/">
            
                    
                    后端开发
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../backend/design.html">
            
                <a href="../backend/design.html">
            
                    
                    架构设计
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../backend/db.html">
            
                <a href="../backend/db.html">
            
                    
                    数据库
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="../backend/note/">
            
                <a href="../backend/note/">
            
                    
                    java web
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.3.1" data-path="../backend/note/servlet-zu-zhi.html">
            
                <a href="../backend/note/servlet-zu-zhi.html">
            
                    
                    Servlet部署
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3.2" data-path="../backend/note/note.html">
            
                <a href="../backend/note/note.html">
            
                    
                    琐碎的tips
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="../backend/spring_boot.html">
            
                <a href="../backend/spring_boot.html">
            
                    
                    Spring boot
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5" data-path="../backend/django.html">
            
                <a href="../backend/django.html">
            
                    
                    django
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.6" data-path="../backend/concurrent.html">
            
                <a href="../backend/concurrent.html">
            
                    
                    分布式
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter active" data-level="1.7" data-path="./">
            
                <a href="./">
            
                    
                    Linux && Hardware
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="ubuntu_init.html">
            
                <a href="ubuntu_init.html">
            
                    
                    Ubuntu安装与初始配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="raspbian/">
            
                <a href="raspbian/">
            
                    
                    树莓派相关
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.2.1" data-path="raspbian/rtlwifi.html">
            
                <a href="raspbian/rtlwifi.html">
            
                    
                    树莓派3B+无线网卡监听模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2.2" data-path="raspbian/tlwr703n_openwrt.html">
            
                <a href="raspbian/tlwr703n_openwrt.html">
            
                    
                    TP-LINK TL-WR703N v1.7 openwrt flashing
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../python/">
            
                <a href="../python/">
            
                    
                    Python
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="../python/django.html">
            
                <a href="../python/django.html">
            
                    
                    django
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="../python/raw.html">
            
                <a href="../python/raw.html">
            
                    
                    原生模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3" data-path="../python/design.html">
            
                <a href="../python/design.html">
            
                    
                    设计模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.4" data-path="../python/viz.html">
            
                <a href="../python/viz.html">
            
                    
                    可视化
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.5" data-path="../python/libs.html">
            
                <a href="../python/libs.html">
            
                    
                    常用库踩坑指南
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../web-front/">
            
                <a href="../web-front/">
            
                    
                    web前端
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1" data-path="../web-front/head_content.html">
            
                <a href="../web-front/head_content.html">
            
                    
                    header div固定，content div填充父容器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.2" data-path="../web-front/json_res.html">
            
                <a href="../web-front/json_res.html">
            
                    
                    json接口资源
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="../ui.html">
            
                <a href="../ui.html">
            
                    
                    UI
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="../kit/">
            
                <a href="../kit/">
            
                    
                    kit
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.11.1" data-path="../kit/note.html">
            
                <a href="../kit/note.html">
            
                    
                    vim
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2" data-path="../kit/git/">
            
                <a href="../kit/git/">
            
                    
                    git/github
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.11.2.1" data-path="../kit/git/green_blush.html">
            
                <a href="../kit/git/green_blush.html">
            
                    
                    刷爆github小绿点
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.11.3" data-path="../kit/markdown/">
            
                <a href="../kit/markdown/">
            
                    
                    Markdown/gitbook
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.11.3.1" data-path="../kit/markdown/pieces.html">
            
                <a href="../kit/markdown/pieces.html">
            
                    
                    琐碎知识点
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.3.2" data-path="../kit/markdown/gitbook_disqus.html">
            
                <a href="../kit/markdown/gitbook_disqus.html">
            
                    
                    gitbook添加disqus作为评论
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.3.3" data-path="../kit/markdown/chrome_mark2_md.html">
            
                <a href="../kit/markdown/chrome_mark2_md.html">
            
                    
                    导出chrome书签为Markdown
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.3.4" data-path="../kit/markdown/wx_md.html">
            
                <a href="../kit/markdown/wx_md.html">
            
                    
                    Markdown here && 微信公众号
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.11.4" data-path="../kit/latex/">
            
                <a href="../kit/latex/">
            
                    
                    LaTex
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.11.4.1" data-path="../kit/latex/note.html">
            
                <a href="../kit/latex/note.html">
            
                    
                    LaTex琐记
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.11.5" data-path="../kit/ss.html">
            
                <a href="../kit/ss.html">
            
                    
                    科学上网
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.6" data-path="../kit/vmware.html">
            
                <a href="../kit/vmware.html">
            
                    
                    虚拟机
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="../thinking-in-program/">
            
                <a href="../thinking-in-program/">
            
                    
                    thinking-in-program
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.12.1" data-path="../thinking-in-program/log.html">
            
                <a href="../thinking-in-program/log.html">
            
                    
                    怎样打日志
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="../star.html">
            
                <a href="../star.html">
            
                    
                    我的收藏
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14" data-path="../pieces/">
            
                <a href="../pieces/">
            
                    
                    琐记
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.14.1" data-path="../pieces/paper.html">
            
                <a href="../pieces/paper.html">
            
                    
                    论文心得
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.15" data-path="../support.html">
            
                <a href="../support.html">
            
                    
                    赞赏支持
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >Linux && Hardware</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="linux--hardware">Linux &amp;&amp; Hardware</h1>
<h2 id="linux-note">Linux Note</h2>
<h3 id="&#x4E34;&#x65F6;&#x5207;&#x6362;&#x5230;root&#x7528;&#x6237;">&#x4E34;&#x65F6;&#x5207;&#x6362;&#x5230;root&#x7528;&#x6237;</h3>
<blockquote>
<p>sudo su</p>
</blockquote>
<h3 id="&#x7528;-&#x7EC4;&#x5408;&#x4E24;&#x4E2A;&#x547D;&#x4EE4;&#xFF0C;&#x6BD4;&#x5982;&#xFF1A;">&#x7528; &amp;&amp;&#x7EC4;&#x5408;&#x4E24;&#x4E2A;&#x547D;&#x4EE4;&#xFF0C;&#x6BD4;&#x5982;&#xFF1A;</h3>
<blockquote>
<p>cd dir &amp;&amp; ls</p>
</blockquote>
<h3 id="chown">chown</h3>
<blockquote>
<p>chown user:group filename</p>
</blockquote>
<h3 id="chmod">chmod</h3>
<blockquote>
<p>chmod +x file</p>
</blockquote>
<h3 id="add-sudo-user">add sudo user</h3>
<blockquote>
<p>sudo usermod -aG sudo newuser</p>
</blockquote>
<h3 id="ubuntu&#x6362;&#x6E90;&#x540E;&#xFF0C;&#x52A1;&#x5FC5;&#x6267;&#x884C;">ubuntu&#x6362;&#x6E90;&#x540E;&#xFF0C;&#x52A1;&#x5FC5;&#x6267;&#x884C;</h3>
<blockquote>
<p>sudo apt-get clean &amp;&amp; sudo apt-get autoremove &#x6E05;&#x9664;cache</p>
</blockquote>
<h3 id="vsphere-client-&#x4E2D;&#x4FEE;&#x6539;ubuntu&#x63A7;&#x5236;&#x53F0;&#x5927;&#x5C0F;">vsphere client &#x4E2D;&#x4FEE;&#x6539;ubuntu&#x63A7;&#x5236;&#x53F0;&#x5927;&#x5C0F;</h3>
<ul>
<li>&#x5148;&#x6309;&#x8FD9;&#x4E2A;link&#x64CD;&#x4F5C;&#xFF1A;<a href="http://jingyan.baidu.com/article/fc07f98977b60f12ffe5199b.html" target="_blank">http://jingyan.baidu.com/article/fc07f98977b60f12ffe5199b.html</a></li>
<li>&#x7136;&#x540E;&#x5728;&#x7CFB;&#x7EDF;&#x8BBE;&#x7F6E;&#x4E2D;&#x4FEE;&#x6539;&#x5C4F;&#x5E55;&#x5206;&#x8FA8;&#x7387;&#xFF0C;&#x5C31;&#x80FD;&#x8C03;&#x6574;&#x5230;&#x6BD4;&#x8F83;&#x9002;&#x5408;&#x7684;&#x5C3A;&#x5BF8;&#x3002;</li>
</ul>
<h3 id="&#x4E00;&#x884C;&#x4EE3;&#x7801;&#x7EDF;&#x8BA1;&#x4EE3;&#x7801;&#x884C;&#x6570;">&#x4E00;&#x884C;&#x4EE3;&#x7801;&#x7EDF;&#x8BA1;&#x4EE3;&#x7801;&#x884C;&#x6570;</h3>
<pre><code class="lang-text">find . -iregex &quot;.*\.\(cpp\|h\|java\|sh\)$&quot; | xargs wc -l
</code></pre>
<p>&#x60F3;&#x8981;&#x589E;&#x52A0;&#x7EDF;&#x8BA1;&#x7684;&#x4EE3;&#x7801;&#x7C7B;&#x578B;&#xFF0C;&#x5C31;&#x5728;&#x6B63;&#x5219;&#x8868;&#x8FBE;&#x5F0F;&#x91CC;&#x586B;&#x540E;&#x7F00;&#x5C31;&#x597D;</p>
<h3 id="&#x5F00;&#x542F;&#x540E;&#x53F0;&#x8FDB;&#x7A0B;&#x5E76;&#x8131;&#x79BB;terminal&#x751F;&#x547D;&#x5468;&#x671F;">&#x5F00;&#x542F;&#x540E;&#x53F0;&#x8FDB;&#x7A0B;&#x5E76;&#x8131;&#x79BB;terminal&#x751F;&#x547D;&#x5468;&#x671F;</h3>
<p>&#x6709;&#x65F6;&#x5019;&#x6211;&#x4EEC;&#x4F1A;&#x60F3;&#x8981;&#x5F00;&#x542F;&#x540E;&#x53F0;&#x8FDB;&#x7A0B;&#xFF0C;&#x5F80;&#x5F80;&#x4F1A;&#x7528;&amp;&#x7684;&#x7B26;&#x53F7;&#xFF0C;&#x4F46;&#x8FD9;&#x6837;&#x5F00;&#x7684;&#x8FDB;&#x7A0B;&#x5728;&#x5173;&#x95ED;terminal&#x7684;&#x65F6;&#x5019;&#x4E5F;&#x4F1A;&#x88AB;&#x6740;&#x6B7B;&#xFF0C;&#x56E0;&#x6B64;&#x8FD8;&#x8981;&#x52A0;&#x4E00;&#x4E2A;disown&#xFF0C;&#x89E3;&#x7ED1;&#x8FDB;&#x7A0B;&#x548C;&#x7EC8;&#x7AEF;&#xFF1A;</p>
<pre><code class="lang-text">./test.sh &amp; disown
</code></pre>
<h2 id="ubuntu&#x641C;&#x7D22;&#x8F6F;&#x4EF6;&#x6E90;">ubuntu&#x641C;&#x7D22;&#x8F6F;&#x4EF6;&#x6E90;</h2>
<pre><code>sudo apt-cache search ros(&#x5173;&#x952E;&#x5B57;)
</code></pre><h3 id="ubuntu-&#x5168;&#x5C40;&#x4EE3;&#x7406;">Ubuntu &#x5168;&#x5C40;&#x4EE3;&#x7406;</h3>
<p>&#x7CFB;&#x7EDF;&#x8BBE;&#x7F6E;-&#x7F51;&#x7EDC;-&#x4EE3;&#x7406;&#x8BBE;&#x7F6E;-&#x624B;&#x52A8;-&#x586B;&#x81EA;&#x5DF1;&#x7684;&#x4EE3;&#x7406;&#x670D;&#x52A1;&#x5668;&#x5730;&#x5740;&#x548C;&#x7AEF;&#x53E3;&#x5373;&#x53EF;</p>
<h3 id="&#x5BFC;&#x5165;&#x5168;&#x5C40;&#x8BC1;&#x4E66;">&#x5BFC;&#x5165;&#x5168;&#x5C40;&#x8BC1;&#x4E66;</h3>
<pre><code class="lang-text">sudo cp your.crt /usr/share/ca-certificates/your.crt
sudo dpkg-reconfigure ca-certificates
</code></pre>
<p>&#x6216;&#x8005;&#x7F16;&#x8F91; <code>/etc/ca-certificates.conf</code></p>
<p>&#x7136;&#x540E;</p>
<pre><code class="lang-text">sudo update-ca-certificates
sudo dpkg-reconfigure ca-certificates
</code></pre>
<h3 id="ubuntu-desktop&#x5E94;&#x7528;&#x8BBE;&#x7F6E;&#x73AF;&#x5883;&#x53D8;&#x91CF;">Ubuntu desktop&#x5E94;&#x7528;&#x8BBE;&#x7F6E;&#x73AF;&#x5883;&#x53D8;&#x91CF;</h3>
<p>&#x76F4;&#x63A5;&#x4E0A;&#x4EE3;&#x7801;</p>
<pre><code class="lang-text">[Desktop Entry]
Version=1.0
Type=Application
Name=Pycharm
Exec=env LD_LIBRARY_PATH=:/usr/local/cuda/lib64:/usr/local/cuda/lib64 /home/cwh/software/pycharm-2016.1.4/bin/pycharm.sh
Icon=/home/cwh/software/pycharm-2016.1.4/bin/pycharm.png
Name[zh_CN]=Pycharm
</code></pre>
<h3 id="ubuntu&#x63A7;&#x5236;&#x7AEF;&#x8FDC;&#x7A0B;&#x767B;&#x9646;&#x53E6;&#x5916;&#x7684;&#x8BBE;&#x5907;">Ubuntu&#x63A7;&#x5236;&#x7AEF;&#x8FDC;&#x7A0B;&#x767B;&#x9646;&#x53E6;&#x5916;&#x7684;&#x8BBE;&#x5907;</h3>
<ul>
<li>&#x53EF;&#x4EE5;&#x8003;&#x8651;remmina&#xFF0C;&#x6216;&#x8005;rdesktop&#xFF0C;</li>
<li>remmina&#x662F;ubuntu&#x81EA;&#x5E26;&#x7684;&#xFF0C;&#x542F;&#x52A8;&#x548C;&#x914D;&#x7F6E;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;&#x56FE;&#x5F62;&#x5316;&#x754C;&#x9762;&#x5B9E;&#x73B0;&#xFF0C;&#x5E76;&#x4E14;&#x6301;&#x4E45;&#x5316;&#x914D;&#x7F6E;&#x4FE1;&#x606F;</li>
<li><p>rdesktop&#x9700;&#x8981;&#x81EA;&#x5DF1;&#x53E6;&#x5916;&#x5B89;&#x88C5;</p>
<pre><code class="lang-text">sudo apt-get install rdesktop
</code></pre>
</li>
<li><p>&#x5B89;&#x88C5;&#x540E;&#x901A;&#x8FC7;&#x53C2;&#x6570;&#x542F;&#x52A8;&#x8FDC;&#x7A0B;&#xFF0C;&#x542F;&#x52A8;&#x540E;&#x7684;&#x8FDC;&#x7A0B;&#x6BD4;remmina&#x597D;&#x770B;&#xFF0C;&#x4F8B;&#x5B50;:<a href="http://blog.sina.com.cn/s/blog_408184cf01010qpw.html" target="_blank">&#x4F7F;&#x7528;rdesktop&#x8FDC;&#x7A0B;&#x5E76;&#x8BBE;&#x5B9A;&#x5206;&#x8FA8;&#x7387;</a></p>
</li>
<li>&#x6BD4;&#x8F83;&#x559C;&#x6B22;rdesktop&#xFF0C;&#x6709;&#x7A7A;&#x5199;&#x4E00;&#x4E2A;shell&#x7A0B;&#x5E8F;&#x6765;&#x4FDD;&#x5B58;&#x914D;&#x7F6E;</li>
</ul>
<h3 id="ubuntu-ssh&#x5E26;&#x754C;&#x9762;">Ubuntu SSH&#x5E26;&#x754C;&#x9762;</h3>
<pre><code class="lang-text">ssh -XC user@host
</code></pre>
<h3 id="ubuntu&#x88AB;&#x63A7;&#x7AEF;&#x5141;&#x8BB8;&#x8FDC;&#x7A0B;">Ubuntu&#x88AB;&#x63A7;&#x7AEF;&#x5141;&#x8BB8;&#x8FDC;&#x7A0B;</h3>
<ul>
<li>sudo vino-preferences&#xFF0C;&#x5141;&#x8BB8;&#x8FDC;&#x7A0B;</li>
<li><p>&#x5B89;&#x88C5;&#x8FDC;&#x7A0B;&#x684C;&#x9762;&#x73AF;&#x5883;</p>
<pre><code class="lang-text">sudo apt-get install xfce4
sudo apt-get install xrdp tightvncserver
echo &quot;xfce4-session&quot; &gt;~/.xsession
sudo service xrdp restart
</code></pre>
</li>
<li><p>&#x5176;&#x4E2D;xfce4 tab&#x952E;&#x9ED8;&#x8BA4;&#x4F1A;&#x56E0;&#x4E3A;&#x952E;&#x4F4D;&#x51B2;&#x7A81;&#x4E0D;&#x80FD;&#x81EA;&#x52A8;&#x8865;&#x5168;&#xFF0C;&#x9700;&#x8981;&#x6267;&#x884C; <code>xfwm4-settings</code>&#xFF0C;&#x5728; &#x6309;&#x952E; - &#x5207;&#x6362;&#x540C;&#x4E00;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x7684;&#x7A97;&#x53E3;&#xFF0C;&#x6E05;&#x9664;&#x5B83;&#x7684;&#x5FEB;&#x6377;&#x952E;</p>
</li>
<li>xfce4-settings-manager, Prefered applications,&#x53EF;&#x4EE5;&#x4FEE;&#x6539;&#x9ED8;&#x8BA4;&#x7684;&#x7EC8;&#x7AEF;&#x548C;&#x6587;&#x4EF6;&#x7BA1;&#x7406;&#x5668;</li>
<li>&#x7528;windows&#x8FDC;&#x7A0B;ubuntu&#x65F6;&#xFF0C;mstsc&#x547D;&#x4EE4;&#x540E;&#x52A0;/span&#xFF0C;&#x53EF;&#x4EE5;&#x5B9E;&#x73B0;&#x591A;&#x5C4F;&#x6269;&#x5C55;</li>
<li>&#x53EF;&#x4EE5;<a href="https://blog.gtwang.org/linux/xfce-theme-manager-xubuntu/" target="_blank">&#x4FEE;&#x6539;xfce&#x7684;&#x4E3B;&#x9898;</a></li>
<li>&#x53EF;&#x4EE5;&#x4FEE;&#x6539;vncserver&#x5206;&#x8FA8;&#x7387;&#xFF1A;</li>
</ul>
<pre><code class="lang-text">vncserver -geometry 1920x1080
</code></pre>
<p>&#x8FD9;&#x6837;&#x5C31;&#x80FD;&#x542F;&#x52A8;&#x4E00;&#x4E2A;&#x6307;&#x5B9A;&#x5206;&#x8FA8;&#x7387;&#x4E3A;1920x1080&#x7684;vnc&#x4F1A;&#x8BDD;</p>
<ul>
<li>&#x5982;&#x679C;&#x9700;&#x8981;&#x5728;mac&#x4E0A;&#x8FDC;&#x7A0B;Ubuntu&#xFF0C;&#x9700;&#x8981;&#x5728;Ubuntu&#x4E0A;&#x5F00;&#x542F;vncserver: &#x547D;&#x4EE4;&#x884C;&#x8F93;&#x5165;vncserver(&#x521D;&#x6B21;&#x8FD0;&#x884C;&#x8F93;&#x5165;&#x8BBE;&#x7F6E;&#x5BC6;&#x7801;)&#xFF0C;&#x5E76;&#x5C06;~/.vnc/xstartup&#x6587;&#x4EF6;&#x6539;&#x4E3A;&#xFF1A;</li>
</ul>
<pre><code class="lang-text">#!/bin/bash
xrdb $HOME/.Xresources
startxfce4 &amp;
</code></pre>
<p>&#x4EE5;&#x6B64;&#x89E3;&#x51B3;&#x82B1;&#x5C4F;&#x95EE;&#x9898;</p>
<ul>
<li>&#x5173;&#x95ED;&#x4E00;&#x4E2A;vncserver&#xFF1A;</li>
</ul>
<pre><code class="lang-text">vncserver -kill :k
</code></pre>
<p>k&#x662F;&#x4F60;&#x7684;vncserver&#x7684;&#x7F16;&#x53F7;&#xFF0C;&#x6BD4;&#x5982;&#x7AEF;&#x53E3;&#x53F7;5904&#x7684;vncserver&#x5E94;&#x8BE5;&#x662F;4</p>
<p>&#x5728;&#x5404;&#x4E2A;&#x5E73;&#x53F0;&#x4E0A;&#x53EF;&#x4EE5;&#x4E0B;&#x8F7D;<a href="https://www.realvnc.com/download/viewer/" target="_blank">vncviewer</a>&#x6765;&#x8FDE;&#x63A5;vncserver</p>
<h3 id="ubuntu1804&#x8FDC;&#x7A0B;">ubuntu18.04&#x8FDC;&#x7A0B;</h3>
<p>&#x5982;&#x679C;&#x662F;ubuntu18.04&#xFF0C;&#x5219;&#x4E0D;&#x9700;&#x8981;&#x5B89;&#x88C5;xfce&#xFF0C;&#x53EF;&#x4EE5;&#x76F4;&#x63A5;&#x901A;&#x8FC7;xorg&#x8FDC;&#x7A0B;&#x539F;&#x751F;ubuntu&#xFF1A;</p>
<pre><code>sudo apt-get install xrdp
</code></pre><p>&#x53C2;&#x8003;&#xFF1A;<a href="https://zhuanlan.zhihu.com/p/93438433" target="_blank">https://zhuanlan.zhihu.com/p/93438433</a></p>
<h3 id="&#x5171;&#x4EAB;&#x4EE3;&#x7406;&#x7ED9;&#x624B;&#x673A;">&#x5171;&#x4EAB;&#x4EE3;&#x7406;&#x7ED9;&#x624B;&#x673A;</h3>
<ul>
<li>&#x6761;&#x4EF6;&#x4E00;&#xFF1A;&#x7535;&#x8111;&#x80FD;&#x79D1;&#x5B66;&#x4E0A;&#x7F51;&#xFF08;&#x6211;&#x7528;&#x4E86;xx-net&#xFF09;</li>
<li>&#x6761;&#x4EF6;&#x4E8C;&#xFF1A;&#x7535;&#x8111;&#x548C;&#x624B;&#x673A;&#x5904;&#x4E8E;&#x540C;&#x4E00;&#x4E2A;&#x5C40;&#x57DF;&#x7F51;&#x91CC;</li>
<li>&#x64CD;&#x4F5C;&#xFF1A;&#x5728;xx-net&#x7684;&#x76EE;&#x5F55;&#x4E2D;&#x641C;&#x7D22;proxy.ini&#xFF0C;&#x5C06;ini&#x4E2D;&#xFF0C;127.0.0.1&#x6539;&#x6210;0.0.0.0</li>
<li>&#x67E5;&#x770B;&#x81EA;&#x5DF1;&#x7535;&#x8111;&#x7684;ip</li>
<li>android&#x624B;&#x673A;wifi&#x8FDE;&#x63A5;&#x90A3;&#x91CC;&#xFF0C;&#x8BBE;&#x7F6E;&#x4EE3;&#x7406;&#xFF0C;&#x8BBE;&#x7F6E;ip&#x4E3A;&#x7535;&#x8111;ip&#xFF0C;&#x7AEF;&#x53E3;&#x4E3A;8087(xx-net&#x7684;&#x4EE3;&#x7406;&#x7AEF;&#x53E3;)</li>
<li>end</li>
</ul>
<h3 id="ubuntu-nautilus-&#x6587;&#x4EF6;&#x6D4F;&#x89C8;&#x5668;&#x4E2D;&#xFF0C;ctrl--l&#x53EF;&#x4EE5;&#x5C06;&#x5730;&#x5740;&#x53D8;&#x4E3A;&#x5B57;&#x7B26;&#x4E32;&#x65B9;&#x4FBF;&#x590D;&#x5236;">Ubuntu nautilus &#x6587;&#x4EF6;&#x6D4F;&#x89C8;&#x5668;&#x4E2D;&#xFF0C;Ctrl + L&#x53EF;&#x4EE5;&#x5C06;&#x5730;&#x5740;&#x53D8;&#x4E3A;&#x5B57;&#x7B26;&#x4E32;&#x65B9;&#x4FBF;&#x590D;&#x5236;</h3>
<h3 id="ubuntu-1604&#x53D1;wifi">Ubuntu 16.04&#x53D1;wifi</h3>
<ul>
<li>&#x53C2;&#x8003;&#x8FD9;&#x4E2A;<a href="http://ubuntuhandbook.org/index.php/2016/04/create-wifi-hotspot-ubuntu-16-04-android-supported/" target="_blank">&#x6559;&#x7A0B;</a></li>
</ul>
<h3 id="&#x89E3;&#x538B;zip&#x4E71;&#x7801;">&#x89E3;&#x538B;zip&#x4E71;&#x7801;</h3>
<ul>
<li><p>&#x4F7F;&#x7528;</p>
<pre><code class="lang-text">unzip -O CP936 xxx.zip
</code></pre>
</li>
</ul>
<h3 id="ubuntu-kernel-&#x66F4;&#x65B0;&#x540E;&#x65E0;&#x6CD5;&#x767B;&#x5F55;&#x5FAA;&#x73AF;&#x767B;&#x5F55;">Ubuntu kernel &#x66F4;&#x65B0;&#x540E;&#x65E0;&#x6CD5;&#x767B;&#x5F55;&#x5FAA;&#x73AF;&#x767B;&#x5F55;</h3>
<ul>
<li>&#x65B0;&#x88C5;&#x4E86;&#x663E;&#x5361;&#x9A71;&#x52A8;&#xFF0C;&#x7136;&#x540E;&#x53D1;&#x73B0;&#x8FC7;&#x4E86;&#x51E0;&#x5929;&#x91CD;&#x542F;&#x5C31;&#x6CA1;&#x6CD5;&#x767B;&#x5F55;&#x4E86;&#xFF0C;ssh&#x53EF;&#x4EE5;&#x767B;&#x5F55;&#xFF0C;-X &#x767B;&#x5F55;&#x63D0;&#x793A; .Xauthority unwritable</li>
<li>&#x91CD;&#x88C5;NVIDIA&#x663E;&#x5361;&#x9A71;&#x52A8;&#xFF0C;home&#x76EE;&#x5F55;&#x4E0B;&#x5220;&#x9664;.Xauthor*&#x51E0;&#x4E2A;&#x76EE;&#x5F55;</li>
<li>&#x91CD;&#x542F;&#xFF0C;&#x95EE;&#x9898;&#x89E3;&#x51B3;</li>
</ul>
<h3 id="&#x5B89;&#x88C5;nvidia&#x5B98;&#x65B9;&#x9A71;&#x52A8;">&#x5B89;&#x88C5;NVIDIA&#x5B98;&#x65B9;&#x9A71;&#x52A8;</h3>
<ul>
<li>&#x6839;&#x636E;&#x81EA;&#x5DF1;&#x663E;&#x5361;&#x4E0B;&#x8F7D;&#x5BF9;&#x5E94;&#x9A71;&#x52A8;:<a href="http://www.nvidia.cn/Download/index.aspx?lang=cn" target="_blank">http://www.nvidia.cn/Download/index.aspx?lang=cn</a></li>
<li><p>ctrl alt f1&#x8FDB;&#x5165;&#x547D;&#x4EE4;&#x884C;&#x6A21;&#x5F0F;&#xFF0C;&#x8FD0;&#x884C;&#x5982;&#x4E0B;&#x547D;&#x4EE4;&#xFF1A;</p>
<pre><code class="lang-text">sudo service lightdm stop
sudo ./NVIDIA-Linux-x86_64-367.57.run
</code></pre>
</li>
<li><p>&#x4E00;&#x8DEF;&#x786E;&#x5B9A;</p>
</li>
<li>&#x7136;&#x540E;sudo reboot</li>
</ul>
<h3 id="&#x5378;&#x8F7D;nvidia&#x5B98;&#x65B9;&#x9A71;&#x52A8;">&#x5378;&#x8F7D;Nvidia&#x5B98;&#x65B9;&#x9A71;&#x52A8;</h3>
<blockquote>
<p>&#x5378;&#x8F7D;&#xFF0C;&#x5F88;&#x7B80;&#x5355;&#xFF0C;&#x52A0;&#x4E0A; --uninstall &#x9009;&#x9879;&#x518D;&#x8FD0;&#x884C;&#x4E00;&#x904D;&#x5B89;&#x88C5;&#x7A0B;&#x5E8F;&#x5C31;&#x53EF;&#x4EE5;&#x4E86;&#x3002;&#x4F8B;&#x5982;&#xFF1A;&#x5047;&#x8BBE;&#x4F60;&#x7684;&#x5B89;&#x88C5;&#x7A0B;&#x5E8F;&#x662F; NVIDIA-Linux-x86-169.12-pkg1.run &#x7684;&#x8BDD;&#xFF0C;&#x5728; root &#x4E0B;&#x952E;&#x5165; ./NVIDIA-Linux-x86-169.12-pkg1.run --uninstall &#x5C31;&#x53EF;&#x4EE5;&#x5378;&#x8F7D;&#x4E86;&#x3002;&#x6B32;&#x4E86;&#x89E3;&#x5B89;&#x88C5;&#x7A0B;&#x5E8F;&#x7684;&#x66F4;&#x591A;&#x9009;&#x9879;&#xFF0C;&#x8BF7;&#x4F7F;&#x7528; ./NVIDIA-Linux-x86-169.12-pkg1.run -h &#x6216; ./NVIDIA-Linux-x86-169.12-pkg1.run -A &#x8FDB;&#x884C;&#x67E5;&#x770B;&#x3002;</p>
</blockquote>
<h3 id="rar">rar</h3>
<ul>
<li>ubuntu &#x9ED8;&#x8BA4;&#x7684;&#x89E3;&#x538B;&#x5DE5;&#x5177;&#x4E0D;&#x80FD;&#x89E3;&#x538B;rar&#xFF0C;&#x9700;&#x8981;&#x5B89;&#x88C5;rar&#x548C;unrar</li>
<li><p>&#x9644;&#x4E0A;&#x5404;&#x79CD;&#x89E3;&#x538B;&#x547D;&#x4EE4;&#x7684;<a href="http://alex09.iteye.com/blog/647128" target="_blank">&#x94FE;&#x63A5;</a></p>
<pre><code class="lang-text">sudo apt-get install rar
sudo apt-get install unrar
# &#x89E3;&#x538B;
sudo rar x abc.rar
# &#x538B;&#x7F29;
sudo rar a abc.rar abc
</code></pre>
<p><strong>ssh&#x514D;&#x5BC6;&#x7801;&#x767B;&#x5F55;</strong></p>
<p>&#x770B;&#x8FD9;&#x4E2A;<a href="https://my.oschina.net/aiguozhe/blog/33994" target="_blank">&#x94FE;&#x63A5;</a></p>
</li>
</ul>
<p>&#x6700;&#x5173;&#x952E;&#x7684;&#x547D;&#x4EE4;&#x662F;</p>
<blockquote>
<p>ssh-keygen -t rsa</p>
</blockquote>
<h3 id="matlabr2015b&#x5361;&#x5728;&#x542F;&#x52A8;&#x754C;&#x9762;">MatlabR2015b&#x5361;&#x5728;&#x542F;&#x52A8;&#x754C;&#x9762;</h3>
<ul>
<li>&#x8981;&#x7528;sudo&#x8FD0;&#x884C; matlab</li>
<li>&#x9644;&#x4E0A;matlab&#x5B89;&#x88C5;<a href="http://www.jianshu.com/p/60038ffa8870" target="_blank">&#x6559;&#x7A0B;</a></li>
<li><p>&#x5982;&#x679C;&#x542F;&#x52A8;matlab&#x51FA;&#x73B0;crash&#xFF0C;&#x6BB5;&#x9519;&#x8BEF;&#x7B49;&#x7B49;&#xFF0C;&#x6267;&#x884C;&#xFF1A;</p>
<pre><code class="lang-text">sudo apt-get install matlab-support
</code></pre>
</li>
</ul>
<p>&#x6309;&#x63D0;&#x793A;&#x6267;&#x884C;&#x5E76;&#x786E;&#x8BA4;&#xFF0C;rename&#x4EC0;&#x4E48;&#x7684;&#x90FD;&#x8981;&#x9009;yes</p>
<h2 id="ubuntu-&#x5B89;&#x88C5;nginx&#x5E76;&#x914D;&#x7F6E;web&#x524D;&#x7AEF;&#x670D;&#x52A1;&#x5668;">Ubuntu &#x5B89;&#x88C5;nginx&#x5E76;&#x914D;&#x7F6E;web&#x524D;&#x7AEF;&#x670D;&#x52A1;&#x5668;</h2>
<pre><code class="lang-text">sudo apt-get install nginx
vi mywebsite.conf
</code></pre>
<p>&#x5199;&#x5165;</p>
<pre><code class="lang-text">server {
    listen 8080;
    charset utf-8;
    root /home/your/wesite;
    location / {
    }
}
</code></pre>
<p>&#x914D;&#x7F6E;&#x5230;nginx</p>
<pre><code class="lang-text">cd /etc/nginx/conf.d
sudo ln -s /your/conf/path/mywebsite.conf
</code></pre>
<p>&#x6CE8;&#x610F;&#x7F51;&#x7AD9;&#x4E0D;&#x80FD;&#x5728;/root&#x76EE;&#x5F55;&#x4E0B;&#xFF0C;&#x5426;&#x5219;&#x4E00;&#x5B9A;&#x4F1A;&#x51FA;&#x73B0;403</p>
<p>&#x91CD;&#x542F;nginx</p>
<pre><code class="lang-text">sudo nginx -s reload
</code></pre>
<h2 id="ssh&#x53CD;&#x5411;&#x4EE3;&#x7406;&#x8BBF;&#x95EE;&#x5185;&#x7F51;">ssh&#x53CD;&#x5411;&#x4EE3;&#x7406;&#x8BBF;&#x95EE;&#x5185;&#x7F51;</h2>
<ul>
<li>&#x53C2;&#x8003;<a href="http://b.liuctic.com/2013/12/ssh%E6%AD%A3%E5%90%91%E5%8F%8D%E5%90%91%E8%BF%9E%E6%8E%A5%E7%9A%84%E5%BC%BA%E5%A4%A7%E5%8A%9F%E8%83%BD%E4%BB%A5%E5%8F%8Aautossh%E3%80%90%E8%BD%AC%E8%BD%BD%E4%B8%A4%E7%AF%87%E3%80%91/" target="_blank">&gt;&gt;</a>&#xFF0C;&#x91C7;&#x7528;autossh</li>
<li>&#x9700;&#x8981;&#x6CE8;&#x610F;&#x8BBE;&#x7F6E;GatewayPorts yes&#xFF0C;&#x53C2;&#x8003;<a href="http://www.netcan666.com/2016/09/28/ssh%E9%9A%A7%E9%81%93%E5%8F%8D%E5%90%91%E4%BB%A3%E7%90%86%E5%AE%9E%E7%8E%B0%E5%86%85%E7%BD%91%E5%88%B0%E5%85%AC%E7%BD%91%E7%AB%AF%E5%8F%A3%E8%BD%AC%E5%8F%91/" target="_blank">&gt;&gt;</a></li>
<li>&#x5176;&#x4ED6;&#x5185;&#x7F51;&#x7A7F;&#x900F;&#x7684;&#x65B9;&#x6CD5;&#x8FD8;&#x6709;teamviewer, openvpn, ngrok&#xFF0C;&#x6709;&#x7A7A;&#x518D;&#x7814;&#x7A76;&#x770B;&#x770B;</li>
</ul>
<h2 id="&#x7F16;&#x8BD1;opencv">&#x7F16;&#x8BD1;opencv</h2>
<ul>
<li>&#x5F53;opencv&#x653E;&#x5728;ntfs&#x683C;&#x5F0F;&#x7684;&#x78C1;&#x76D8;&#x4E0A;,&#x5E76;&#x5728;ubuntu&#x4E0A;&#x7F16;&#x8BD1;&#x65F6;,&#x4F1A;&#x6709;&#x5982;&#x4E0B;&#x9519;&#x8BEF;:</li>
</ul>
<p><code>CMake fails to deterimine the bitness of target platform. opencv ubuntu</code></p>
<h2 id="caffe&#x5B98;&#x7F51;&#x5B89;&#x88C5;&#x6559;&#x7A0B;&#x6CA1;&#x544A;&#x8BC9;&#x4F60;&#x7684;&#x4E1C;&#x897F;">Caffe&#x5B98;&#x7F51;&#x5B89;&#x88C5;&#x6559;&#x7A0B;&#x6CA1;&#x544A;&#x8BC9;&#x4F60;&#x7684;&#x4E1C;&#x897F;</h2>
<ul>
<li>Ubuntu&#x4E0A;,hdf5&#x662F;&#x5E26;serial&#x7684;,&#x9700;&#x8981;&#x6DFB;&#x52A0;&#x5934;&#x6587;&#x4EF6;&#x548C;lib:<ul>
<li>&#x5728;Make.config&#x4E2D;,&#x4FEE;&#x6539;:</li>
</ul>
</li>
</ul>
<pre><code class="lang-text">INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/include/hdf5/serial/
</code></pre>
<p>&#x6216;&#x8005;&#x76F4;&#x63A5;&#x8FD0;&#x884C;</p>
<pre><code class="lang-text">find . -type f -exec sed -i -e &apos;s^&quot;hdf5.h&quot;^&quot;hdf5/serial/hdf5.h&quot;^g&apos; -e &apos;s^&quot;hdf5_hl.h&quot;^&quot;hdf5/serial/hdf5_hl.h&quot;^g&apos; &apos;{}&apos; \;
</code></pre>
<ul>
<li>&#x8FDE;&#x63A5;hdf5&#x7684;&#x5E93;:</li>
</ul>
<pre><code class="lang-text">cd /usr/lib/x86_64-linux-gnu
sudo ln -s libhdf5_serial.so.8.0.2 libhdf5.so
sudo ln -s libhdf5_serial_hl.so.8.0.2 libhdf5_hl.so
</code></pre>
<ul>
<li>make pycaffe&#x4E4B;&#x540E;,&#x9700;&#x8981;&#x5728;~/.bashrc&#x6DFB;&#x52A0;pythonpath:</li>
</ul>
<pre><code class="lang-text">export PYTHONPATH=/path/to/caffe/python:$PYTHONPATH
</code></pre>
<ul>
<li>&#x5982;&#x679C;pycaffe&#x4F7F;&#x7528;&#x4E86;anaconda&#x7684;numpy,&#x5173;&#x8054;&#x4E86;mkl,&#x5219;&#x9700;&#x8981;&#x5728;~/.bashrc&#x4E2D;&#x6DFB;&#x52A0;mkl&#x7684;preload</li>
</ul>
<pre><code class="lang-text">export LD_PRELOAD=/opt/intel/mkl/lib/intel64/libmkl_core.so:/opt/intel/mkl/lib/intel64/libmkl_sequential.so
</code></pre>
<ul>
<li>apt-get &#x5B89;&#x88C5;&#x7684;protobuf&#x662F;&#x8DDF;&#x968F;ubuntu g++&#x7248;&#x672C;&#x7684;&#xFF0C;&#x4F46;cuda&#x7684;&#x5B89;&#x88C5;&#x662F;&#x843D;&#x540E;&#x4E8E;g++&#x7248;&#x672C;&#x7684;&#xFF0C;&#x5982;&#x679C;g++&#x964D;&#x7EA7;&#x8FC7;&#xFF0C;&#x7528;&#x8FD9;&#x4E2A;&#x4F4E;&#x7248;&#x672C;g++&#x7F16;&#x8BD1;caffe&#x65F6;&#xFF0C;&#x4F1A;&#x5BFC;&#x81F4;&#x627E;&#x4E0D;&#x5230;&#x9AD8;&#x7248;&#x672C;&#x7684;protobuf&#xFF0C;&#x5E94;&#x5F53;&#x5C06;g++&#x5347;&#x7EA7;&#x56DE;&#x6765;:</li>
</ul>
<pre><code class="lang-text">sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.4 20
</code></pre>
<p>&#x4F46;&#x662F;g++&#x5347;&#x7EA7;&#x53C8;&#x4F1A;&#x5BFC;&#x81F4;&#x7F16;&#x8BD1;&#x65F6;cuda&#x4E0D;&#x517C;&#x5BB9;&#xFF0C;&#x5B9E;&#x9645;&#x4E0A;cuda&#x4E0D;&#x662F;&#x5B8C;&#x5168;&#x4E0D;&#x517C;&#x5BB9;&#xFF0C;&#x53EA;&#x8981;&#x628A;<code>/usr/local/cuda/include/host_config.h</code>&#x4E2D;&#x7684;&#x8FD9;&#x4E09;&#x884C;&#x6CE8;&#x91CA;&#x6389;&#x5C31;&#x884C;&#xFF1A;</p>
<pre><code class="lang-cpp"><span class="hljs-comment">//#if __GNUC__ &gt; 5 || (__GNUC__ == 5 &amp;&amp; __GNUC_MINOR__ &gt; 3)</span>

<span class="hljs-comment">//#error -- unsupported GNU version! gcc versions later than 5.3 are not supported!</span>

<span class="hljs-comment">//#endif /* __GNUC__ &gt; 5 || (__GNUC__ == 5 &amp;&amp; __GNUC_MINOR__ &gt; 1) */</span>
</code></pre>
<ul>
<li>caffe&#x7F16;&#x8BD1;&#x65F6;&#x53EA;&#x517C;&#x5BB9;apt-get&#x7684;protobuf&#xFF0C;&#x4E0D;&#x517C;&#x5BB9;&#x5176;&#x4ED6;&#x9AD8;&#x7248;&#x672C;&#x7684;&#xFF0C;&#x5982;&#x679C;&#x505A;&#x4E86;&#x4E0A;&#x9762;&#x7684;&#x4FEE;&#x6539;&#x4ECD;&#x7136;&#x6709;&#x95EE;&#x9898;&#xFF0C;&#x9700;&#x8981;&#x5C06;&#x7CFB;&#x7EDF;&#x4E2D;&#xFF08;&#x6BD4;&#x5982;anaconda&#x4E2D;&#xFF09;&#x7684;&#x5176;&#x4ED6;protobuf&#x5378;&#x8F7D;</li>
<li>caffe python3, make pycaffe&#x4F1A;&#x63D0;&#x793A;&#x627E;&#x4E0D;&#x5230;-lboost_python3&#xFF0C;&#x9700;&#x8981;&#xFF1A;</li>
</ul>
<pre><code class="lang-text">sudo ln -s libboost_python-py35.so libboost_python3.so
</code></pre>
<h2 id="opencv-gpu&#x7F16;&#x8BD1;cuda-8&#x517C;&#x5BB9;&#x95EE;&#x9898;">OpenCV GPU&#x7F16;&#x8BD1;CUDA-8&#x517C;&#x5BB9;&#x95EE;&#x9898;</h2>
<p><a href="https://github.com/thrust/thrust/issues/800" target="_blank">https://github.com/thrust/thrust/issues/800</a></p>
<h2 id="&#x67E5;&#x770B;&#x7AEF;&#x53E3;&#x5360;&#x7528;">&#x67E5;&#x770B;&#x7AEF;&#x53E3;&#x5360;&#x7528;</h2>
<pre><code class="lang-text"> netstat -ap | grep 8080
</code></pre>
<h2 id="ubuntu-&#x7834;&#x89E3;&#x5BC6;&#x7801;">ubuntu &#x7834;&#x89E3;&#x5BC6;&#x7801;</h2>
<p><a href="http://blog.topspeedsnail.com/archives/6042" target="_blank">http://blog.topspeedsnail.com/archives/6042</a></p>
<h2 id="screen-&#x5E38;&#x7528;&#x547D;&#x4EE4;">screen &#x5E38;&#x7528;&#x547D;&#x4EE4;</h2>
<ul>
<li>start new session</li>
</ul>
<p><code>screen -S sessionname</code></p>
<ul>
<li>detach and kill session:</li>
</ul>
<p><code>$ screen -X -S [session # you want to kill] quit</code></p>
<ul>
<li>detach current session</li>
</ul>
<p><code>$ screen -d [session id]</code></p>
<ul>
<li>switch to other session</li>
</ul>
<p><code>$ screen -r session id</code></p>
<ul>
<li>show sessions</li>
</ul>
<p><code>$ screen -r</code></p>
<p><code>screen -list</code></p>
<ul>
<li>screen&#x4E2D;&#x6EDA;&#x52A8;&#x5C4F;&#x5E55;</li>
</ul>
<p>ctrl+a+[&#x8FDB;&#x5165;&#x590D;&#x5236;&#x6A21;&#x5F0F;&#xFF0C;&#x7136;&#x540E;&#x5C31;&#x53EF;&#x4EE5;&#x4E0A;&#x4E0B;&#x5DE6;&#x53F3;&#x952E;&#x63A7;&#x5236;&#x4E86;</p>
<h2 id="gcc&#x964D;&#x7EA7;">GCC&#x964D;&#x7EA7;</h2>
<p><code>sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 100</code></p>
<h2 id="cmake">cmake</h2>
<p>&#x7F16;&#x5199;CMakeLists.txt&#xFF0C;&#x7136;&#x540E;<code>cmake .</code>&#xFF0C;&#x7136;&#x540E;make&#xFF0C;&#x4E5F;&#x53EF;&#x4EE5;&#x5EFA;&#x7ACB;&#x4E00;&#x4E2A;build&#x76EE;&#x5F55;&#xFF0C;&#x5728;&#x91CC;&#x8FB9;<code>cmake ..</code>&#xFF0C;&#x7136;&#x540E; make&#xFF0C;&#x4F7F;&#x5F97;&#x751F;&#x6210;&#x7684;&#x6587;&#x4EF6;&#x90FD;&#x5728;build&#x91CC;&#xFF0C;CMakeLists.txt&#x4F8B;&#x5B50;&#xFF1A;</p>
<pre><code class="lang-text">project(hello_world)
add_library(lib0 lib0.cpp)
add_executable(hello_world hello_world.cpp)
target_link_library(hello_world lib0)
</code></pre>
<h1 id="nvidia&#x89E3;&#x5360;&#x7528;">nvidia&#x89E3;&#x5360;&#x7528;</h1>
<blockquote>
<p>fuser -v /dev/nvidia*</p>
</blockquote>
<h1 id="&#x8FC7;&#x6EE4;&#x60F3;&#x8981;&#x7684;&#x6587;&#x672C;&#x884C;">&#x8FC7;&#x6EE4;&#x60F3;&#x8981;&#x7684;&#x6587;&#x672C;&#x884C;</h1>
<blockquote>
<p>awk &apos;NR%10==0&apos; file </p>
</blockquote>
<h1 id="ubuntu-1804&#x5F55;&#x5C4F;">Ubuntu 18.04&#x5F55;&#x5C4F;</h1>
<p>ctrl+shift+alt+r &#x5F00;&#x542F;&#x548C;&#x5173;&#x95ED;&#x5F55;&#x5236;</p>
<h1 id="vscode&#x79BB;&#x7EBF;&#x5B89;&#x88C5;&#x63D2;&#x4EF6;">VSCode&#x79BB;&#x7EBF;&#x5B89;&#x88C5;&#x63D2;&#x4EF6;</h1>
<blockquote>
<p>code --install-extension xxx.vsix</p>
</blockquote>
<h1 id="ubuntu-server-1804-&#x5B89;&#x88C5;&#x56FE;&#x5F62;&#x5316;&#x754C;&#x9762;&#x73AF;&#x5883;">Ubuntu-server 18.04 &#x5B89;&#x88C5;&#x56FE;&#x5F62;&#x5316;&#x754C;&#x9762;&#x73AF;&#x5883;</h1>
<p>1.&#x5B89;&#x88C5;x&#xFF0D;windows&#x7684;&#x57FA;&#x7840;</p>
<blockquote>
<p>sudo apt-get install -fy x-window-system-core</p>
</blockquote>
<p>2.&#x5B89;&#x88C5;gnome&#x57FA;&#x7840;</p>
<blockquote>
<p>sudo apt-get install -fy gnome-core</p>
</blockquote>
<p>3.&#x5B89;&#x88C5;&#x4E2D;&#x6587;&#x663E;&#x793A;(&#x5EFA;&#x8BAE;&#x5B89;&#x88C5;&#xFF09;</p>
<blockquote>
<p>sudo apt install language-pack-gnome-zh language-pack-zh language-support-zh-hans language-support-zh-hant language-support-zh</p>
</blockquote>
<p>4.&#x5B89;&#x88C5;&#x4E2D;&#x6587;&#x8F93;&#x5165;&#x6CD5;</p>
<blockquote>
<p>sudo apt install ibus-pinyin
sudo apt install ibus-libpinyin
sudo apt install fcitx </p>
</blockquote>
<p>5.&#x8FDB;&#x5165;&#x56FE;&#x5F62;&#x754C;&#x9762;&#xFF1A;startx</p>
<p>6.&#x9000;&#x51FA;&#x56FE;&#x5F62;&#x684C;&#x9762;&#xFF1A;ctrl + alt + backspace</p>
<p>7.&#x5378;&#x8F7D;gnome&#x684C;&#x9762;&#x73AF;&#x5883;</p>
<blockquote>
<p>sudo apt-get &#x2013;purge remove liborbit2</p>
</blockquote>
<h1 id="cmake-upgrade-without-uninstall-older-version">cmake upgrade without uninstall older version</h1>
<pre><code>cd ~/Downloads/cmake-3.12.0-rc3/   # or wherever you downloaded cmake
./bootstrap --prefix=$HOME/cmake-install
make 
make install
export PATH=$HOME/cmake-install/bin:$PATH
export CMAKE_PREFIX_PATH=$HOME/cmake-install:$CMAKE_PREFIX_PATH
</code></pre>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="../backend/concurrent.html" class="navigation navigation-prev " aria-label="Previous page: 分布式">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="ubuntu_init.html" class="navigation navigation-next " aria-label="Next page: Ubuntu安装与初始配置">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"Linux && Hardware","level":"1.7","depth":1,"next":{"title":"Ubuntu安装与初始配置","level":"1.7.1","depth":2,"path":"note/ubuntu_init.md","ref":"note/ubuntu_init.md","articles":[]},"previous":{"title":"分布式","level":"1.6.6","depth":2,"path":"backend/concurrent.md","ref":"backend/concurrent.md","articles":[]},"dir":"ltr"},"config":{"plugins":["disqus","github","toggle-chapters","mathjax","mermaid-gb3"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"disqus":{"useIdentifier":false,"shortName":"ahangchen-blog"},"github":{"url":"https://github.com/ahangchen/windy-afternoon"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"mermaid-gb3":{},"mathjax":{"forceSVG":false,"version":"2.6-latest"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"toggle-chapters":{}},"theme":"default","author":"陈伟航","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"梦里茶","gitbook":"*"},"file":{"path":"note/README.md","mtime":"2021-10-01T05:22:20.681Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2021-10-03T04:31:53.922Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="https://cdnjs.cloudflare.com/ajax/libs/URI.js/1.16.1/URI.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-disqus/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-github/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-toggle-chapters/toggle.js"></script>
        
    
        
        <script src="https://cdn.staticfile.org/mathjax/2.6.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-mathjax/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-mermaid-gb3/book/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    <script src="../gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.min.js"></script>

    </body>
</html>

